package com.cmc.cloud.cmclink.doc.convert;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.cmc.cloud.cmclink.doc.entity.DgDescDO;
import com.cmc.cloud.cmclink.doc.vo.sovo.dginfovo.DgDescCreateReqVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.dginfovo.DgDescRespVO;
import com.cmc.cloud.cmclink.doc.vo.sovo.dginfovo.DgDescUpdateReqVO;

/**
 * 危险品信息补充 Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface DgDescConvert {

    DgDescConvert INSTANCE = Mappers.getMapper(DgDescConvert.class);

    /**
     * 属性转换 convert
     *
     * @param bean bean
     * @return DgDescDO
     */
    DgDescDO convert(DgDescCreateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean bean
     * @return DgDescDO
     */
    DgDescDO convert(DgDescUpdateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean bean
     * @return DgDescRespVO
     */
    DgDescRespVO convert(DgDescDO bean);

    /**
     * 属性转换 convert
     *
     * @param list list
     * @return DgDescRespVO
     */
    List<DgDescRespVO> convertList(List<DgDescDO> list);

}
